export function post(url, data){
  return new Promise((resolve, reject) => {
    // https://business.alm-iot.com/
    // http://192.168.0.37:4475
    // http://127.0.0.1:4475
    wx.request({
      url: 'https://business.alm-iot.com' + url,
      method: 'POST',
      data: data,
      success (res) {
        console.log('request: OK');
        resolve(res.data);
      },
      fail(res) {
        console.log('错误');
        console.log(res);
      }
    })
  });
}